package com.guessnumber.guess.chestinterface.extendwidget;

import com.guessnumber.guess.chestinterface.myinv;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;

import java.util.List;

public class first extends myinv.widget {
    public first(int x, int y, Material gm, String name, List<String> lore, int custommodeldata, int n) {
        super(x,y,gm,name,lore,custommodeldata,n);
    }

    @Override
    public InventoryClickEvent WhenClick(InventoryClickEvent ice) {
        Player p = (Player) ice.getWhoClicked();
        p.sendMessage("test!");
        ice.setCancelled(true);
        return ice;
    }
}
